
@import '_variables.less';

body {
    color: black;
    margin: 0;
    padding: 0;
}

.container {
    width: 1024px;
    margin: 0 auto;
}

header {
    background-image: url("/images/header-bg.jpg");
    padding: 10px 0;
    .top {
        .container;
        height: 50px;
        line-height: 50px;

        ul {
            
            margin: 0;
            padding: 0;
            list-style: none;

            li {
                margin: 0 10px;
                color: #333;
                display: inline-block;
            }
        }
    }

    .search {
        h1 {
            text-align: center;
        }

        form {
            width: 600px; 
            margin: 0 auto;
        }
        .search-history {
            margin: 3px;
            .search-history-title {
                color: #999;
            }
            .search-history-item {
                list-style: none;
                display: inline-block;
                padding: 3px;
                margin: 0 3px;
                a {
                    color: #888;
                }
            }
        }
    }
}

.main {
    .container;

    margin-top: 20px;
    .group {
        &:hover {
            background-color: #f1f6fc;
        }
        .group-title {
            color: @brand-color;
            text-align: right;
        }
        .sites {
            margin: 10px 0;

            span.site a {
                font-size: 16px;
                color: @gray-darken;
                margin: 2px 5px;
                &:hover {
                    text-decoration: underline;
                    color: @brand-color;
                }
            }
        }
    }
}
.treasure-box{
    position: relative;
	z-index: 4;
	width: 1000px;
	margin: 0 auto 10px;
    border-radius: 10px;
    .treasure-wrapper{
        width: 1060px;
	    margin: 0 auto 10px;
	    padding-bottom: 20px;
        .treasure-item{
            height: 50px;
	        overflow: hidden;
            .item-class{
                font-weight: 700;
                float: left;
                width: 110px;
                height: 28px;
                padding-left: 40px;
                line-height: 28px;
                margin: 16px 0;
                overflow: hidden;
                // margin: 11px 0;
                color: rgba(70, 12, 2, 0.8);

            }
            .item-link{
                float: left;
                width: 125px;
                background-image: url(../images/box_icons.png);
                background-repeat: no-repeat;
                background-position: 0 0;
                padding: 14px 0 14px 24px;
                // padding: 9px 0 9px 24px;
                border-bottom: 1px solid #f1f1f1;
                position: relative;
                a{
                    display: inline-block;
                    vertical-align: middle;
                    max-width: 89px;
                    height: 28px;
                    line-height: 28px;
                    color: #656973;
                    padding: 0 5px;
                    border-radius: 8px;
                    overflow: hidden;
                }
                &:before{
                    position: absolute;
                    left: 0;
                    bottom: -1px;
                    content: '';
                    width: 0;
                    height: 1px;
                    background: #f60;
                    -webkit-transition: all 0.5s;
                    -moz-transition: all 0.5s;
                    -ms-transition: all 0.5s;
                    -o-transition: all 0.5s;
                    transition: all 0.5s;
                }
                &:hover{
                    border-bottom: 1px solid #f60;
                    &:before{
                        width: 120px;
                    }
                }
            }
        }
    }
}
.news {
    .container;

    .news-title {
        color: #f60;
        text-align: center;
    }
    .news-item {
        cursor: pointer;
        border-top: 2px solid @brand-color;
        width: 300px;
        display: inline-block;
        margin: 10px 15px;
        padding: 10px 20px;
        background-color: #fdfdfd;
        
        h4 {
            font-weight: 700;
            text-align: center;
            font-size: 20px;
            height: 35px;
            line-height: 30px;
            overflow: hidden;
            color: #333;
        }

        img {
            width: 100%;
            height: 130px;
            margin: 20px 0;
            &:hover{  
                 box-shadow:0 0 10px rgba(176, 172, 169, 0.61); 
            }
        }

        p {
            color: #999;
            font-size: 12px;
            height: 50px;
            line-height: 16px;
            overflow: hidden;
            &:hover{
                color: #f47721;
            }
        }

        &:hover {
            border-top: 2px solid red;
            z-index: 2;
            -webkit-box-shadow: 0 15px 30px rgba(0,0,0,0.2);
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
            -webkit-transform: translate3d(0, -2px, 0);
            transform: translate3d(0, -2px, 0);
        }
    }
}
footer {
    margin: 10px 0 0 0;
    padding: 10px;
    background-color: @brand-color;
    .copyright {
        .container;

        color: white;
        text-align: center;
    }
}